package com.ty.day7;

import java.util.concurrent.Callable;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/30 14:35
 */
public class MyThread001 extends Thread  implements Callable {
    @Override
    public Object call() throws Exception {
        Thread thread = Thread.currentThread();
        for (int i = 0; i < 100; i++) {
            System.out.println(thread.getName()+","+i);
            Thread.sleep(200);
        }
        return 1;
    }
}
